<div id="receivablesShowContent"></div>
<script type="text/html" id="receivablesContent">
    <form class="layui-form layui-form-pane kaige-body-form" style="padding: 5px;" lay-filter="receivables_form_lay_filter" id="receivables_form_lay">
        {{# if(d.id){ }}
        <input type="hidden" name="id" value="{{ d.id }}"/>
        {{# } }}
        <input type='hidden' name='contract_id' value='{{ d.contract_id }}'/>
        <input type='hidden' name='customer_id' value='{{ d.customer_id }}'/>
        <div class="layui-form-item">
            <label class="layui-form-label">回款编号</label>
            <div class="layui-input-inline">
                <input name="number" value="{{ d.number || '' }}" class="layui-input" type="text">
            </div>
            <label class="layui-form-label">回款日期</label>
            <div class="layui-input-inline">
                <input id="return_time" name="return_time" value="{{ d.return_time || '' }}" class="layui-input"
                       type="text">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">回款方式</label>
            <div class="layui-input-inline">
                <select name="return_type_id" lay-verify="required">
                    {{# lay.each(d.pagedict.return_type,function(index,item){
                        if(index == ''){
                            top.layer.msg('系统字典->回款方式未配置完成，值不能为空');
                        }
                    }}
                    <option value="{{ index }}" {{ d.return_type_id== index ? 'selected' :'' }}>{{ item }}</option>
                    {{# }) }}
                </select>
            </div>
            <label class="layui-form-label">回款金额</label>
            <div class="layui-input-inline">
                <input name="money" value="{{ d.money || '' }}" class="layui-input" type="text">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">备注</label>
            <div class="layui-input-block">
                <input name="remarks" value="{{ d.remarks || '' }}" class="layui-input" type="text">
            </div>
        </div>


        <div class="layui-form-item layui-hide">
            <button class="layui-hide" lay-submit="" id="receivables_form_btn_save" lay-filter="receivables_form_btn_save">保存数据
            </button>
        </div>
    </form>
</script>